from time import sleep
from selenium import webdriver


driver = webdriver.Chrome()
driver.get("https://www.baidu.com/")

key_word = driver.find_element_by_id('kw')
key_word.send_keys('AK47')
bt = driver.find_element_by_id('su')
bt.click()
sleep(3)
driver.quit()